//
//  UFAPI.h
//  universityFace
//
//  Created by 阮 沧晖 on 14-9-25.
//  Copyright (c) 2014年 阮 沧晖. All rights reserved.
//

#import <Foundation/Foundation.h>

//登陆模块API
typedef enum _DDAuthTag
{
    kDDAuthToken = 101,     //获取Access Token & 刷新Access Token
    kDDLoginOut,            //登出操作
}DDAuthTag;

//用户模块API
typedef enum _DDUserTag
{
    kDDGetUserInfo=201, //获取当前用户信息
    kDDIsBind,          //查询是否有绑定第三方账号
    kDDBind,            //绑定第三方账号
    kDDIsOpen,          //检查是否为注册用户
    kDDUserPhoneCode,   //获取手机验证码
    kDDResetPassword,   //重置用户密码
    kDDUserRegister,    //注册用户
    kDDUserEdit,        //修改用户信息
    kDDPasswordChange,  //修改用户密码
    kDDAvatarSave,      //修改用户头像
    kDDUserAvatar,      //获取用户头像地址
    kDDAvatarGet,       //批量获取用户头像地址
    kDDRecentSave,      //更新用户心情
    kDDDailyShare,      //分享纪录
    kDDDailySign,        //签到
}DDUserTag;


//主业务API
typedef enum _DDMainTag{
    kDDTopicList = 301,
    kDDDefaultCourseList, //获取默认的科目列表
    kDDCoursetList,     //获取我的科目列表
    kDDAddCourse,       //增加我的科目
    kDDQuestionSave,    //保存题目
    kDDQuestionList,    //获取我的题库
    kDDMyTopicList,     //获取我的发布
    kDDAnswerSave,
    kDDMarkSave,
    kDDMarkRemove,
    kDDTopicSave,       //发布题目
    kDDMarkList,        //收藏列表
    kDDAnswerList,      //获取我的回答
    kDDAnswerStat,      //获取作答统计
    kDDAnswerUser,      //获取答题用户列表
    kDDQuestionAnswerList, //获取题目回答列表
    kDDQuestionAnswerReplyList, //获取追问列表
    kDDQuestionPublishDetail,   //获取发布详情
    kDDQuestionTopicEdit,       //修改发布
    kDDQuestionCourseEdit,      //修改科目
    kDDQuestionTopicTagAdd,     //增加用户题目标签
    kDDQuestionAnswerEvaluate,  //对作答进行评分
    kDDQuestionAnswerReply,     //追问
    kDDQuestionAnswerAdopt,     //采纳答案
    kDDAnswerSubmit,//作答提交（目前提交后只处理下发推送的功能）
}DDMainTag;

//通用模块API
typedef enum _DDCommonTag{
    kUFGetNotice = 401,
    KUFGetSystime,     //获取系统时间
    kDDUpload,
    kDDUploadIMG,
    kCommonFeekback, //意见反馈
    kCommonAbout,
    kDDAdList,          //获取广告
    kCommonCheckVersion
}DDCommonTag;


//积分业务
typedef enum _DDIntegralTag{
    kIntegralQuery = 501,
    kDDGifGave,
    kDDGiftQuery
}DDIntegralTag;


//礼品业务
typedef enum _DDGiftTag{
    kGiftQuery = 601,
    kGiftOrderQuery,
    kGiftExchange
}DDGiftTag;

//收货地址
typedef enum _DDAddressTag
{
    kAddressQuery = 701,
    kAddressAdd,
    kAddressUpdate,
    
}DDAddressTag;




@interface UFAPI : NSObject

+(id)shared;

-(NSString *)urlStringWithModuleAuthTag:(DDAuthTag)tag;
-(NSString *)urlStringWithModuleUserTag:(DDUserTag)tag;

-(NSString *)urlStringWithModuleMainTag:(DDMainTag)tag;

- (NSString *)urlStringWithGeneralTag:(DDCommonTag)tag;

-(NSString *)urlStringWithModuleIntegralTag:(DDIntegralTag)tag;

//礼品
-(NSString *)urlStringWithGiftTag:(DDGiftTag)tag;
//收货地址
-(NSString *)urlStringWithAddressTag:(DDAddressTag)tag;

@end
